package com.android.logger;

import android.app.Application;
import com.android.logcat.LoggerConfig;

/**
 * @author GYL
 * @version 1.0
 * @dateTime 2020/6/30-16:14
 * @description
 */
public class MyApplication extends Application {
  
  @Override
  public void onCreate() {
    super.onCreate();
    LoggerConfig.Builder builder=LoggerConfig.Builder.newBuilder(this)
      .withEnableWriteFile(true)
      .withTagPrefix("LOG")
      .withEnableDebug(true);
    LoggerConfig.setSingletonInstance(builder);
    
  }
}
